package org.jsbd.boss.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IUserIncrDAO;
import org.jsbd.boss.domian.statistics.UserClientInfoUseRatio;
import org.jsbd.boss.domian.statistics.UserClientinfoDay;
import org.jsbd.boss.domian.statistics.UserIncrVO;
import org.jsbd.boss.service.IUserIncrService;
import org.springframework.stereotype.Service;

@Service("userIncrService")
public class UserIncrServiceImpl implements IUserIncrService {
	
	@Resource
	private IUserIncrDAO userIncrDao;

	@Override
	public Map<String, Object> getIncrUserWithPage(DataGridModel page, UserIncrVO userIncrVO) {
		return userIncrDao.selectIncrUserWithPage(page, userIncrVO);
	}

	@Override
	public List<String> getAnalyzeDataxAxis(String startTime) {
		return userIncrDao.selectAnalyzeDataxAxis(startTime);
	}

	@Override
	public List<Integer> getAnalyzeDatayAxis(String startTime, Integer type) {
		return userIncrDao.selectAnalyzeDatayAxis(startTime, type);
	}

	@Override
	public List<UserClientinfoDay> getAnalyzeDataPie(String startTime) {
		return userIncrDao.selectAnalyzeDataPie(startTime);
	}

	@Override
	public List<String> getUseRateDataxAxis(String startTime) {
		return userIncrDao.selectUseRateDataxAxis(startTime);
	}

	@Override
	public List<UserClientInfoUseRatio> getUseRateDatayAxis(String startTime) {
		return userIncrDao.selectUseRateDatayAxis(startTime);
	}

	@Override
	public List<String> getUseRateQoqDataxAxis(String startTime, String endTime, Integer base) {
		return userIncrDao.selectUseRateQoqDataxAxis(startTime, endTime, base);
	}

	@Override
	public List<UserClientInfoUseRatio> getUseRateQoqDatayAxis(String startTime, String endTime, Integer base, Integer carrier) {
		return userIncrDao.selectUseRateQoqDatayAxis(startTime, endTime, base, carrier);
	}

	@Override
	public Long getNewnumByCarrier(String rd, Integer carrier) {
		return userIncrDao.selectNewnumByCarrier(rd, carrier);
	}

}
